
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>刷卡无忧</title>
    <link rel="stylesheet" href="static/font/iconfont.css"/>
    <link rel="stylesheet" type="text/css" href="static/css/bootstrap-grid.min.css"/>
    <link rel="stylesheet" href="static/css/weui.css"/>
    <link rel="stylesheet" href="static/css/example.css"/>
    <link rel="stylesheet" type="text/css" href="static/css/tool.css"/>
    <link rel="stylesheet" type="text/css" href="static/css/style.css"/>
    <link rel="stylesheet" type="text/css" href="static/css/cover.css"/>
</head>
<body ontouchstart>
    <div class="weui-toptips weui-toptips_warn js_tooltips">错误提示</div>
    <div class="container" id="container"></div>
    <script type="text/html" id="tpl_home">
    	   <section class="page my_login">
			<img class="my_logo1" src="static/images/logo1.png" />
			<form class="warp com_form">
				<div class="weui-cells weui-cells_form">
				    <div class="weui-cell">
				        <div class="weui-cell__bd pr">
				            <i class="iconfont icon-touxiang"></i>
				            <input class="weui-input pl_5" type="tel" required pattern="[0-9]{11}" placeholder="输入你现在的手机号" emptyTips="请输入手机号" notMatchTips="请输入正确的手机号">
				        </div>
				        <div class="weui-cell__ft">
				            <i class="weui-icon-warn"></i>
				        </div>
				    </div>
				</div>
				<div class="weui-cells weui-cells_form">
				    <div class="weui-cell">
				        <div class="weui-cell__bd pr">
				            <i class="iconfont icon-suo"></i><input class="weui-input pl_5" type="password" pattern="[0-9]*" placeholder="密码"/>
				        </div>
				        <div class="weui-cell__ft">
				            <i class="weui-icon-warn"></i>
				        </div>
				    </div>
				</div>
				<a href="javascript:;" class="weui-btn weui-btn_warn mt_3 com_btn">登录</a>
				<a href="#reg1" class="weui-btn weui-btn_default my_btn">注册</a>
			</form>
			<a class="t_c block mt_2">忘记密码<i class="iconfont icon-wenhao f14"></i></a>
		</section>	
		<script>
			$(".com_btn").click(function(){
				weui.form.validate('.com_form', function (error) {
				    if (!error) {
				        var loading = weui.loading('提交中...');
				        setTimeout(function () {
				            loading.hide();
				            weui.toast('提交成功', 3000);
				        }, 1500);
				    }
				    // return true; // 当return true时，不会显示错误
				}, {
				    regexp: {
				        IDNUM: /(?:^\d{15}$)|(?:^\d{18}$)|^\d{17}[\dXx]$/,
				        VCODE: /^.{4}$/
				    }
				});
			});
		</script>
	</script>
    <script src="static/js/zepto.min.js"></script>
    <script src="https://res.wx.qq.com/open/libs/weuijs/1.0.0/weui.min.js"></script>
    <script src="static/js/example.js"></script>
</body>
</html>
